<template>
  <div class="demo">
    <div class="demo-title">自动切换</div>
    <div class="demo-content">
      <Carousel autoplay>
        <div><h3>1</h3></div>
        <div><h3>2</h3></div>
        <div><h3>3</h3></div>
        <div><h3>4</h3></div>
      </Carousel>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import Carousel from '@sscd/carousel';
</script>

<style lang="less" scoped>
  .demo-content {
    :deep(.slick-slide) {
      text-align: center;
      height: 160px;
      line-height: 160px;
      background: #364d79;
      overflow: hidden;
      h3 {
        color: #fff;
      }
    }
  }
</style>
